package com.ai.smlcore.util;

import java.util.HashMap;
import java.util.Map;

public class ThreadLocalParam {
	static ThreadLocal<ThreadLocalParam> thread = new ThreadLocal<ThreadLocalParam>();

	private ThreadLocalParam() {

	}

	public static ThreadLocalParam getThreadInstance() {
		if (thread.get() == null) {
			thread.set(new ThreadLocalParam());
		}
		return thread.get();
	}

	private Map<String, String> logParam = new HashMap<String, String>();

	public Map<String, String> getLogParam() {
		return logParam;
	}

	public void setLogParam(Map<String, String> logParam) {
		this.logParam = logParam;
	}
}
